package com.zhanjixun.weixin.demo;

import com.zhanjixun.weixin.Weixin;
import com.zhanjixun.weixin.utils.UserTools;
import lombok.extern.log4j.Log4j;

import java.io.File;

/**
 * @author :zhanjixun
 * @date : 2018/11/18 11:02
 */
@Log4j
public class Main {

    public static void main(String[] args) {
        Weixin weixin = Weixin.getInstance();
        weixin.login();
        File file = new File("C:\\Users\\zhanjixun\\Desktop\\微博表情");
        for (File f : file.listFiles()) {
            weixin.getMessenger().sendEmoticonMsg(UserTools.remarkName2userName("小号"), f);
        }
        
    }

}
